class CreatePremiAssicurativi < ActiveRecord::Migration
  def self.up
    create_table :premi_assicurativi do |t|
      t.integer  "polizza_id"
      t.date     "data_inizio"
      t.date     "data_fine"
      t.string   "frazionamento"
      t.decimal  "importo",   :precision => 9, :scale => 2
      t.text     "testo"
      t.integer  "created_by"
      t.integer  "updated_by"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.datetime "deleted_at"
      t.integer  "lock_version", :default => 0, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :premi_assicurativi
  end
end
